<?php
// +----------------------------------------------------------------------
// | title: 排行榜日志
// +----------------------------------------------------------------------
// | Author: TZ.Leong
// +----------------------------------------------------------------------
// | Date: 2019/11/7 11:22
// +----------------------------------------------------------------------

return array(
    1 => array(
        "title" => "排行榜日志",
        'table_name' => "rank",
        "where" => array(
            "type" => array("type" => "select", "values" => config("rank_type"), "value" => 1),
            'role_id' => array('name' => '玩家ID', "type" => "text", "value" => ""),
            'name' => array('name' => '角色名', "type" => "text", "value" => ""),
            'day' => array('name' => '时间','type' => 'date','keep_date' => true,'values' => array('start_date' => date('Y-m-d'),'end_date' => date('Y-m-d'))),
        ),
        "where_merge" => [],
        'show'=> array(
            'role_id' => '玩家ID',
            'name' => '角色名',
            'type' => ["排行榜类型","function" => "getTypeName","param" => ["field" => "type", "config" => "rank_type"]],
            'rank' => '排名',
            'value' => '值',
            'log_time' => array("记录时间","function" => "changeDate"),
        )
    ),
);